home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
2499.ZIP
/
EXEC.ZIP
/
READ.ME
< prev
Wrap
Text File
|
1988-02-25
|
831b
|
34 lines
Use of EXEC to spawn new processes under windows.
-------------------------------------------------
EXEC.ASM should be compiled under MASM and linked with win app.
Following code should be included in C application required to execute other
applications.
Definitions (in main C app)
---------------------------
typedef struct {
WORD enviroment;
LPSTR commandline;
LPSTR FCB1;
LPSTR FCB2;
} EXECBLOCK;
extern far pascal Int21Function4B();
Code within Application to cause loading/execution of other application
-----------------------------------------------------------------------
e.enviroment=0;
w[0]=2;
w[1]=SHOW_OPENWINDOW; /* Alter to suit */
e.commandline=(LPSTR)"\0\r";
e.FCB1=(LPSTR)w;
e.FCB2=0L;
Int21Function4B(0,(LPSTR)"CLOCK.EXE",(LPSTR)&e); /* Insert app name */